<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Dinic: Fichero Fuente apifiles/nbrhd.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Dinic
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documentacion de la API de DINIC para la cátedra de Matemática Discreta II.</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('nbrhd_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">nbrhd.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="nbrhd_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _NBRHD_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _NBRHD_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="__u64_8h.html">_u64.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="lado_8h.html">lado.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structNeighbourhoodSt.html">NeighbourhoodSt</a> *<a class="code" href="structNbrhd.html">Nbrhd</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">/* dir options:</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"> * Es la dirección en la que se encuentra un vecino.</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"> * Una vecindad (Nbrhd) se divide en 2 zonas: FWD y BWD.*/</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="nbrhd_8h.html#aa02f16883c5ce325e2dbb8c3835aa9a1">   45</a></span>&#160;<span class="preprocessor">#define FWD 1   </span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="nbrhd_8h.html#ababc4097c218c2f90a92b311e09a8e42">   46</a></span>&#160;<span class="preprocessor">#define BWD -1  </span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor"></span><span class="comment">/* Parámetros para nbrhd_getFwd() y nbrhd_getBwd */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span><span class="comment">/*&#39;rqst&#39; options: Indica cual es el siguiente vecino que se quiere obtener.*/</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="nbrhd_8h.html#acfb785e5d4271a2e7d9023de22c90495">   50</a></span>&#160;<span class="preprocessor">#define FST 0       </span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="nbrhd_8h.html#a553fc2c3e5597c822f21145286924748">   51</a></span>&#160;<span class="preprocessor">#define NXT 1       </span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span><span class="comment">/*          Funciones</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">/* Constructor de un nuevo Nbrhd.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment"> * return: un Nbrhd vacío.</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;Nbrhd <a class="code" href="nbrhd_8c.html#a006b65686eb0a5b9866d5c820e080c36">nbrhd_create</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/* Destructor de un Nbrhd.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment"> * pre: Nbrhd no es nulo.</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="nbrhd_8c.html#a011cf0e134a632ddac08a769e3275f22">nbrhd_destroy</a>(Nbrhd nbrhd);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">/* Genera el vinculo entre &#39;x&#39; e &#39;y&#39; (edge) convirtiéndolos en vecinos.</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment"> * La relación es &#39;xy&#39;: &#39;y&#39; vecino forward de &#39;x&#39;; &#39;x&#39; vecino backward de &#39;y&#39;.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"> * pre: &#39;x&#39;, &#39;y&#39;, &#39;edge&#39; no son nulos.</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment"> * x Vecindario del nodo &#39;x&#39;.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment"> * y Vecindario del nodo &#39;y&#39;.</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment"> * edge Lado &#39;xy&#39; con su capacidad y flujo.</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span> <a class="code" href="nbrhd_8c.html#adba3ec97b97e982e7f5bfc486e9e22b5">nbrhd_addEdge</a>(Nbrhd x, Nbrhd y, <a class="code" href="structLado.html">Lado</a> edge);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">/* Busca el siguiente vecino forward.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment"> * La petición de búsqueda puede ser por el primer nodo (FST) de la tabla, </span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment"> * o bien por el siguiente(NXT) del ultimo pedido. </span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"> * Si existe, almacena el nombre en &#39;y&#39;.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment"> * NOTE Tener en cuenta la documentación sobre las opciones de los parámetros.</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment"> * Verlo como un iterador de consultas a una tabla.</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"> * nbrs  El vecindario del nodo ancestro &#39;x&#39;. </span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment"> * rqst  Si se pide el primero &#39;FST&#39; o un siguiente &#39;NXT&#39;.</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment"> * y     Variable en la que se almacena el nombre del vecino encontrado.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment"> * pre: &#39;nbrs&#39; e &#39;y&#39; no son nulos y &#39;rqst&#39; es una opción valida (FST o NXT).</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment"> * return: 1 Si se encontró y se almacenó en &#39;y&#39; un vecino.</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment"> *         0 Caso contrario.</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keywordtype">int</span> <a class="code" href="nbrhd_8c.html#ad0c3e02751a0077f2bf1f90e4d0384d1">nbrhd_getFwd</a>(Nbrhd nbrs, <span class="keywordtype">int</span> rqst, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> *y);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">/* Busca el siguiente vecino backward.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment"> * La petición de búsqueda puede ser por el primer nodo (FST) de la tabla, </span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment"> * o bien por el siguiente(NXT) del ultimo pedido. </span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment"> * Si existe almacena el nombre en &#39;y&#39;.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment"> * NOTE Tener en cuenta la documentación sobre las opciones de los parámetros.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"> * Verlo como un iterador de consultas a una tabla.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment"> * nbrs  El vecindario del nodo ancestro &#39;x&#39;. </span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment"> * rqst  Si se pide el primero &#39;FST&#39; o un siguiente &#39;NXT&#39;.</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment"> * y     Variable en la que se almacena el nombre del vecino encontrado.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment"> * pre: &#39;nbrs&#39; e &#39;y&#39; no son nulos y &#39;rqst&#39; es una opción valida (FST o NXT)</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment"> * return: 1 Si se encontró y se almacenó en &#39;y&#39; un vecino.</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment"> *         0 Caso contrario.</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keywordtype">int</span> <a class="code" href="nbrhd_8c.html#a0563715d3cfbbb59cf3e83ef242283e2">nbrhd_getBwd</a>(Nbrhd nbrs, <span class="keywordtype">int</span> rqst, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> *y);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">/* Se aumenta el flujo para con el vecino &#39;y&#39; por &#39;vf&#39; cantidad. </span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment"> * Si &#39;y&#39; es un vecino BWD, el valor del flujo se disminuye por &#39;vf&#39; cantidad.</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment"> * nbrs  El vecindario del nodo ancestro &#39;x&#39;. </span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"> * y     El nombre del vecino.</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"> * vf    El valor de flujo.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment"> * pre: &#39;y&#39; es vecino de &#39;x&#39;. &#39;vf&#39; &gt; 0.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment"> * return: Valor del nuevo flujo que se esta enviando entre &#39;x&#39; e &#39;y&#39;.*/</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="nbrhd_8c.html#ab32ddc38828b7a18e3dfba02180ce6fa">nbrhd_increaseFlow</a>(Nbrhd nbrs, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> y, <span class="keywordtype">short</span> <span class="keywordtype">int</span> dir, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> vf); </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">/* Devuelve la capacidad del lado que relaciona al nodo ancestro &#39;x&#39; con el </span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment"> * vecino &#39;y&#39;.</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment"> * Como pueden haber loops hay que especificar si se esta tratando del lado &#39;xy&#39;</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment"> * o &#39;yx&#39;.</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="comment"> * nbrs  El vecindario del nodo ancestro &#39;x&#39;. </span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment"> * y     El nombre del vecino.</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment"> * dir   Dirección que se encuentra el vecino (lado FWD o BWD).</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment"> * pre: &#39;y&#39; es vecino de &#39;x&#39;. </span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment"> * return:  La capacidad sobre este lado.</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="nbrhd_8c.html#a0dd3e6d98e45f2bbf494d6bba07ffd15">nbrhd_getCap</a>(Nbrhd nbrs, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> y, <span class="keywordtype">short</span> <span class="keywordtype">int</span> dir);  </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="comment">/* Devuelve el valor del flujo del lado que relaciona al nodo ancestro &#39;x&#39; con </span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment"> * el vecino &#39;y&#39;.</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment"> * Como pueden haber loops hay que especificar si se esta tratando del lado &#39;xy&#39;</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment"> * o &#39;yx&#39;.</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment"> * nbrs  El vecindario de &#39;x&#39;. </span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="comment"> * y     El nombre del vecino.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment"> * dir   Dirección que se encuentra el vecino (lado FWD o BWD).</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="comment"> * pre: &#39;y&#39; es vecino de &#39;x&#39;. </span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment"> * return:  El valor del flujo sobre este lado.</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> <a class="code" href="nbrhd_8c.html#afc04eb8a4ab84cddef449ba3f698f6d8">nbrhd_getFlow</a>(Nbrhd nbrs, <a class="code" href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> y, <span class="keywordtype">short</span> <span class="keywordtype">int</span> dir); </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="structNeighbourhoodSt_html"><div class="ttname"><a href="structNeighbourhoodSt.html">NeighbourhoodSt</a></div><div class="ttdoc">Estructura Nbhd de la vecindad de un nodo &amp;#39;x&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00037">nbrhd.c:37</a></div></div>
<div class="ttc" id="__u64_8h_html"><div class="ttname"><a href="__u64_8h.html">_u64.h</a></div><div class="ttdoc">Se utiliza el tipo de dato u64 para especificar un entero de 64 bits sin signo. </div></div>
<div class="ttc" id="nbrhd_8c_html_ad0c3e02751a0077f2bf1f90e4d0384d1"><div class="ttname"><a href="nbrhd_8c.html#ad0c3e02751a0077f2bf1f90e4d0384d1">nbrhd_getFwd</a></div><div class="ttdeci">int nbrhd_getFwd(Nbrhd nbrs, int rqst, u64 *y)</div><div class="ttdoc">Busca el siguiente vecino forward. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00128">nbrhd.c:128</a></div></div>
<div class="ttc" id="nbrhd_8c_html_afc04eb8a4ab84cddef449ba3f698f6d8"><div class="ttname"><a href="nbrhd_8c.html#afc04eb8a4ab84cddef449ba3f698f6d8">nbrhd_getFlow</a></div><div class="ttdeci">u64 nbrhd_getFlow(Nbrhd nbrs, u64 y, short int dir)</div><div class="ttdoc">Devuelve el valor del flujo del lado que relaciona al nodo ancestro &amp;#39;x&amp;#39; con el vecino &amp;#39;y&amp;#39;...</div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00265">nbrhd.c:265</a></div></div>
<div class="ttc" id="nbrhd_8c_html_a006b65686eb0a5b9866d5c820e080c36"><div class="ttname"><a href="nbrhd_8c.html#a006b65686eb0a5b9866d5c820e080c36">nbrhd_create</a></div><div class="ttdeci">Nbrhd nbrhd_create(void)</div><div class="ttdoc">Constructor de un nuevo Nbrhd. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00053">nbrhd.c:53</a></div></div>
<div class="ttc" id="nbrhd_8c_html_ab32ddc38828b7a18e3dfba02180ce6fa"><div class="ttname"><a href="nbrhd_8c.html#ab32ddc38828b7a18e3dfba02180ce6fa">nbrhd_increaseFlow</a></div><div class="ttdeci">u64 nbrhd_increaseFlow(Nbrhd nbrs, u64 y, short int dir, u64 vf)</div><div class="ttdoc">Se aumenta el flujo para con el vecino &amp;#39;y&amp;#39; por &amp;#39;vf&amp;#39; cantidad. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00207">nbrhd.c:207</a></div></div>
<div class="ttc" id="__u64_8h_html_a3f7e2bcbb0b4c338f3c4f6c937cd4234"><div class="ttname"><a href="__u64_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a></div><div class="ttdeci">uint64_t u64</div><div class="ttdoc">Entero de 64 bits sin signo. </div><div class="ttdef"><b>Definition:</b> <a href="__u64_8h_source.html#l00017">_u64.h:17</a></div></div>
<div class="ttc" id="structNbrhd_html"><div class="ttname"><a href="structNbrhd.html">Nbrhd</a></div><div class="ttdoc">Puntero a la vecindad de un nodo. </div></div>
<div class="ttc" id="nbrhd_8c_html_a0563715d3cfbbb59cf3e83ef242283e2"><div class="ttname"><a href="nbrhd_8c.html#a0563715d3cfbbb59cf3e83ef242283e2">nbrhd_getBwd</a></div><div class="ttdeci">int nbrhd_getBwd(Nbrhd nbrs, int rqst, u64 *y)</div><div class="ttdoc">Busca el siguiente vecino backward. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00171">nbrhd.c:171</a></div></div>
<div class="ttc" id="lado_8h_html"><div class="ttname"><a href="lado_8h.html">lado.h</a></div><div class="ttdoc">Lado es una estructura que representa un lado del network. </div></div>
<div class="ttc" id="nbrhd_8c_html_a0dd3e6d98e45f2bbf494d6bba07ffd15"><div class="ttname"><a href="nbrhd_8c.html#a0dd3e6d98e45f2bbf494d6bba07ffd15">nbrhd_getCap</a></div><div class="ttdeci">u64 nbrhd_getCap(Nbrhd nbrs, u64 y, short int dir)</div><div class="ttdoc">Devuelve la capacidad del lado que relaciona al nodo ancestro &amp;#39;x&amp;#39; con el vecino &amp;#39;y&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00242">nbrhd.c:242</a></div></div>
<div class="ttc" id="structLado_html"><div class="ttname"><a href="structLado.html">Lado</a></div><div class="ttdoc">Puntero a un lado. </div></div>
<div class="ttc" id="nbrhd_8c_html_adba3ec97b97e982e7f5bfc486e9e22b5"><div class="ttname"><a href="nbrhd_8c.html#adba3ec97b97e982e7f5bfc486e9e22b5">nbrhd_addEdge</a></div><div class="ttdeci">void nbrhd_addEdge(Nbrhd x, Nbrhd y, Lado edge)</div><div class="ttdoc">Genera el vinculo entre &amp;#39;x&amp;#39; e &amp;#39;y&amp;#39; (edge) convirtiéndolos en vecinos. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00087">nbrhd.c:87</a></div></div>
<div class="ttc" id="nbrhd_8c_html_a011cf0e134a632ddac08a769e3275f22"><div class="ttname"><a href="nbrhd_8c.html#a011cf0e134a632ddac08a769e3275f22">nbrhd_destroy</a></div><div class="ttdeci">void nbrhd_destroy(Nbrhd nbrs)</div><div class="ttdoc">Destructor de un Nbrhd. </div><div class="ttdef"><b>Definition:</b> <a href="nbrhd_8c_source.html#l00068">nbrhd.c:68</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5116870a98769fcb7fa621a6c1aaaf2c.html">apifiles</a></li><li class="navelem"><a class="el" href="nbrhd_8h.html">nbrhd.h</a></li>
    <li class="footer">Generado el Martes, 30 de Septiembre de 2014 12:40:17 para Dinic por
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
